Skip to content

Conversation

jvictorchen
Copy link

Currently, if there're multiple implementations that satisfy the given type, the library will pick the first one silently. This PR addresses that by adding an option PanicOnAmbiguity which, if set to true, will make the program panic when there're more than one implementations available.

jvictorchen and others added 8 commits February 22, 2017 13:49
…decide whether to panic on ambiguous implmementations
Add an option to configure injector to panic if multiple implementations are present for one interface.
Update README files
* Print out more info when panic

* Print out more info when panic on ambiguous implementations
@jvictorchen jvictorchen reopened this Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant